<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/1/6
  Time: 12:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style>
        table,th,tr,td{
            border: 1px solid blue;
        }
    </style>
</head>
<body>
<table>
    <tr>
        <th>编号</th>
        <th>姓名</th>
    </tr>

    <c:forEach items="${list}" var="u">
        <tr>
            <td>${u.id}</td>
            <td>${u.name}</td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="3" align="center">
            <a href="/user/pageUserPage.do?pageindex=1">首页</a>
            <a href="/user/pageUserPage.do?pageindex=${pageindex-1}">上一页</a>
            <a href="/user/pageUserPage.do?pageindex=${pageindex+1}">下一页</a>
            <a href="/user/pageUserPage.do?pageindex=${totalPages}">最后一页</a>
        </td>
    </tr>

</table>

</body>
</html>